package com.goalias.controller;


import com.goalias.resp.Result;
import com.goalias.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 标签表 前端控制器
 * </p>
 *
 * @author goalias
 * @since 2024-12-12
 */
@RestController
@RequestMapping("/content/tag")
public class TagController {

    @Resource
    private ITagService tagService;

    @GetMapping("/countList")
    public Result getTagCountList(){
        return tagService.getTagCountList();
    }
    @GetMapping("/getTags")
    public Result getTags(Long categoryId){
        return tagService.getTags(categoryId);
    }

}
